local function GetName()
  ----------------------------------------------------------------------------
  ---- 参数表： loc.lua 里面的localizations 表，code 为 这里用的index
  local temp_table = {
      "NPCs",                               ----- 默认情况下(英文)
      ["zh"] = "NPC 陪你玩",                                 ----- 中文
  }
  return ChooseTranslationTable(temp_table)
end
local the_version = "1.00.03.34"


name = GetName()
description = "ver " .. the_version .. "     \n创建随机NPC陪你游玩 \n   \nCreate random NPCs to play with you\n"

author = "幕夜之下"
version = the_version
api_version = 10
icon_atlas = "modicon.xml"
icon = "modicon.tex"
forumthread = ""
dont_starve_compatible = true
dst_compatible = true
all_clients_require_mod = true

priority = -1000000000  -- 优先级

local slot_options = {
    {description = "无 ( NONE )", data = 0},
    {description = "最少 ( Low x3)", data = 1},
    {description = "再少 ( Low x2 )", data = 3},
    {description = "少 ( Low )", data = 4},
    {description = "一般 ( normal )", data = 5},
    {description = "多 ( Much )", data = 6},
    {description = "再多 ( Much x2 )", data = 7},
    {description = "尽量多 ( Much x3 )", data = 10}
}

configuration_options =
{
    {
        name = "LANGUAGE",
        label = "Language/语言",
        hover = "Set Language/设置语言",
        options =
        {
          {description = "Auto/自动", data = "auto"},
          {description = "English", data = "en"},
          {description = "中文", data = "ch"},
        },
        default = "auto",
    },
    {
        name = "REWARDS_LESS",
        label = "奖励/Rewards",
        -- hover = "Set Language/设置语言",
        options =
        {
          {description = " 很多/Much ", data = false},
          {description = "很少/Less", data = true},
        },
        default = true,
    },
    {
        name = "DAILY_NPC_NUM",
        label = "每天事件数/Number of events per day",
        hover = "Number of events per day or probability",
        options =
        {
          {description = "10%", data = 0.1},
          {description = "20%", data = 0.2},
          {description = "35", data = 0.35},
          {description = "50%", data = 0.4},
          {description = "65", data = 0.65},
          {description = "80%", data = 0.8},
          {description = "1", data = 1},
          {description = "2", data = 2},
          {description = "3", data = 3},
          {description = "4", data = 4},

        },
        default = 1,
    },
    {
        name = "CARD_AUTO_SELECT",
        label = "卡牌自动选择/Card Auto Select",
        hover = "Automatic card selection",
        options =
        {
          {description = "ON", data = true},
          {description = "OFF", data = false},
        },
        default = false,
    },
    {
      name = "TELEPORT_CARD",
      label = "传送卡牌/Teleportation Card",
      hover = "卡组里是否有传送卡 Availability of teleport cards in the deck",
      options =
      {
        {description = "ON", data = true},
        {description = "OFF", data = false},
      },
      default = true,
  },
    {
        name = "CAMP_PROTECKTION",
        label = "保护营地/Protecting the camp",
        hover = "避免某些事件损坏营地 Appear away from the camp",
        options =
        {
          {description = " 否/no ", data = false},
          {description = "是/yes", data = true},
        },
        default = false,
    },
    {
      name = "CROWKID_TRADE",
      label = "小乌鸦贸易/Crowkid Trade",
      hover = "乌鸦商队贸易",
      options =
      {
        {description = " 否/no ", data = false},
        {description = "是/yes", data = true},
      },
      default = true,
    },
    {
        name = "BASE_MATERIAL_SUPPLIERS",
        label = "基础事件占比(Delivery NPC)",
        hover = "基础送东西事件占所有事件的比例",
        options =
        {
            {description = "3/4", data = 3/4},
            {description = "2/3", data = 2/3},
            {description = "1/2", data = 1/2},
            {description = "1/3", data = 1/3},
            {description = "1/4", data = 1/4},
            {description = "1/5", data = 1/5},
            {description = "1/6", data = 1/6},

        },
        default = 1/2,
    },

    {
      name = "CUSTOMER_VISIT_ALERT",
      label = "顾客提醒( Customer visit alert )",
      options =
      {
          {description = "ON", data = true},
          {description = "OFF", data = false},

      },
      default = true,
    },
    {
      name = "RECYCLING_SETTLEMENT_ANNOUNCE",
      label = "回收结算提醒(Recycling settlement announcement)",
      hover = "Recycling settlement announcement",
      options =
      {
          {description = "ON", data = true},
          {description = "OFF", data = false},

      },
      default = true,
    },
    {
      name = "DLC_HIDDEN_EVENTS",
      label = "DLC角色隐藏事件( DLC character hidden events )",
      options =
      {
          {description = "ON", data = true},
          {description = "OFF", data = false},

      },
      default = true,
    },
    {
      name = "CAVE_RESCUE",
      label = "洞穴救援事件( Cave Rescue Event )",
      options =
      {
          {description = "ON", data = true},
          {description = "OFF", data = false},

      },
      default = true,
    },
    {
      name = "CAVE_ICE_SCULPTURE",
      label = "洞穴冰雕事件( Cave Ice Sculpture Event )",
      options =
      {
          {description = "ON", data = true},
          {description = "OFF", data = false},

      },
      default = true,
    },
    {
      name = "SKELETON_EVENT",
      label = "骷髅恶作剧( skeleton joke )",
      options =
      {
          {description = "ON", data = true},
          {description = "OFF", data = false},

      },
      default = true,
    },
    {        name = "npc_event_ghost",        label = "幽灵NPC( Ghost NPC )",        options = slot_options,        default = 5,    },
    {        name = "npc_event_thief",        label = "小偷(thief)",        options = slot_options,        default = 5,    },
    {        name = "npc_event_minifan",      label = "玩小风车(play minifan)",        options = slot_options,        default = 5,    },
    {        name = "npc_event_woodie_beaver",      label = "海狸伍迪(Beaver Woodie)",        options = slot_options,        default = 5,    },
    {        name = "npc_event_freeze",      label = "玩家冰雕(Ice Sculpture Player)",        options = slot_options,        default = 5,    },
    {        name = "npc_event_deal_with_bat",      label = "蝙蝠交易(Trade with bat)",        options = slot_options,        default = 5,    },
    {        name = "npc_event_meteor",      label = "天罚(Meteor)",        options = slot_options,        default = 5,    },
    {        name = "npc_event_ask_for_razor",      label = "剃刀(Razor)",        options = slot_options,        default = 5,    },
    {        name = "npc_event_bushhat",      label = "火鸡(Turkeys)",        options = slot_options,        default = 5,    },
    {        name = "npc_event_fishbowl",      label = "小鱼缸(Fishbowl)",        options = slot_options,        default = 5,    },
    {        name = "npc_event_maxwell_and_shadow",      label = "老麦和鞭子诅咒(Maxwell & Whip's Curse)",        options = slot_options,        default = 5,    },
    {        name = "npc_event_livingtrees",      label = "活木(Living Trees)",        options = slot_options,        default = 5,    },
    {        name = "npc_event_trident",      label = "三叉戟(Trident)",        options = slot_options,        default = 5,    },
    {        name = "npc_event_telestaff",      label = "传送(TeleStaff)",        options = slot_options,        default = 5,    },
    {        name = "npc_event_clockwork_guard",      label = "发条守卫( Cloclkwork Guard )",        options = slot_options,        default = 5,    },
    {        name = "npc_event_wes_and_ballons",      label = "韦斯和气球( Wes & Ballons )",        options = slot_options,        default = 5,    },
    {        name = "npc_event_wolfgang_and_horn",      label = "沃尔夫冈的号角( Wolfgang & Horn )",        options = slot_options,        default = 5,    },
    {        name = "npc_event_butterflies",      label = "蝴蝶( Bugnet & Butterflies )",        options = slot_options,        default = 5,    },
    {        name = "npc_event_catch_game",      label = "天落礼物盒( Skyfall Gift Box )",        options = slot_options,        default = 5,    },
    {        name = "npc_event_pigman_arena",      label = "猪人竞技场( Pigman Arena )",        options = slot_options,        default = 5,    },
    {        name = "npc_event_treasure_map",      label = "藏宝图( Treasure Map )",        options = slot_options,        default = 5,    },
    {        name = "npc_event_gift_from_walrus",      label = "海象人的礼物( Gift from walrus )",        options = slot_options,        default = 5,    },





    -- {        name = "npcdebuff_attackbymonster",        label = "被怪追的人( Seeking Help )",        options = slot_options,        default = 50,    },    
    -- {        name = "npcdebuff_birds_down",        label = "小鸟( birds )",        options = slot_options,        default = 50,    },
    -- {        name = "npcdebuff_penguins",        label = "愤怒的企鹅们( The Angry Penguins )",        options = slot_options,        default = 50,    },
    -- {        name = "npcdebuff_webber_and_spiders",        label = "韦伯和蜘蛛们( Webber & spiders )",        options = slot_options,        default = 50,    },
    -- {        name = "npcdebuff_shadowcrow",        label = "暗影乌鸦的守护( Shadow Crow )",        options = slot_options,        default = 50,    },
    -- {        name = "npcdebuff_butterfly_staff",        label = "蝴蝶法杖( ButterflyStaff)",        options = slot_options,        default = 50,    },

}
